<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改APP版本管理')" />
    <th:block th:include="include :: datetimepicker-css" />
    <th:block th:include="include :: summernote-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-version-edit" th:object="${fseStAppVersion}">
        <div class="form-group">
            <label class="col-sm-3 control-label">服务条款：</label>
            <div class="col-sm-8">
                <input readonly id="termsOfService" name="termsOfService" th:field="*{termsOfService}" type="hidden">
                <div id="editorTermsOfService" class="summernoteTermsOfService"></div>
            </div>
            <div class="col-sm-offset-5 col-sm-10">
                   <div style="position: relative;right: -15%">
                <button type="button" class="btn btn-sm btn-danger" onclick="fanhui()"><i class="fa fa-reply-all"></i>返回 </button>
                   </div>
            </div>
        </div>


    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<th:block th:include="include :: summernote-js" />
<script type="text/javascript">
    $(function() {
        $('.summernoteTermsOfService').summernote({
            placeholder: '请合理输入内容',
            height : 192,
            lang : 'zh-CN',
            followingToolbar: false,
            callbacks: {
                onImageUpload: function (files) {
                    sendFile(files[0], this);
                }
            },
            toolbar: [
                ['style', ['style']],
                ['font', ['bold', 'underline', 'clear']],
                ['color', ['color']],
                ['para', ['ul', 'ol', 'paragraph']],
            ]
        });
        var content = $("#termsOfService").val();
        $('#editorTermsOfService').summernote('code', content);
        var termsOfService = $('.summernoteTermsOfService').summernote('code');
        $("#termsOfService").val(termsOfService);
    });
    /*返回按钮回到列表页*/
     function fanhui() {
         location.href=ctx+"fsepc/version";
     }


</script>
</body>
</html>